{if $session_is_teacher eq 1}
<form method="post" action="?q=user/manageusers">
	<center>
		<h2>Member List</h2>
		<table>
			<tr>
				<th>Név</th>
				<th>Email</th>				
				<th>Tanári jogok</th>
			</tr>
			{for $counter=0 ; $counter < $usercount ; $counter++}
				<tr>
					<td><center>{$users[$counter]['name']}</center></td>
					<td><center>{$users[$counter]['email']}</center></td>
					<td><input type="checkbox" name="{$counter}-is_teacher" {if $users[$counter]['is_teacher'] eq '1'}checked="true"{else}{/if}/></td>
					<input type="hidden" name="{$counter}-id" value="{$users[$counter]['id']}">
					<input type="hidden" name="{$counter}_old-is_teacher" value="{$users[$counter]['is_teacher']}">
				</tr>	
			{/for}
		</table>

		<input type="submit" name="update" value="Jogok megváltoztatása" />
		<input type="hidden" name="oldcount" value="{$counter}">
	</center>
</form>
{else}
<center>
<h1>Ehhez nincs jogosultságod!</h1><br />
</center>
{/if}